<?php session_start(); ?>
<html>
<head>
</head>
<body>

	<?php
	
	if( $_SESSION["current_user"] != NULL )
	{
		echo "您已经登录了：";
		echo $_SESSION["current_user"];
		echo "\n";		
		echo '	<form action="login_out.php" method="post">
					<tr>
						<td><input type="hidden"  name="loginout" value="loginout" /></td>
						<td><input type="submit" value="注销登录" /></td>
					</tr>
	
				</form>
			';
	}
	
	
	else
	{
		echo '
	

	<div id="login_go.php" style="middle">
	<form action="login_go.php" method="post" align="center">
		<tr>
			<td>用户名：</td>
			<td><input type="text" id="username" name="username" /></td>
		</tr>

		<tr>
			<td>密码</td>
			<td><input type="password" id="password" name="password" /></td>
		</tr>

		<tr>
			<input type="radio" name="day1" value="day1" />记住一天
			<input type="radio" name="day1" value="month1" />记住一月
			<td><input type="submit" value="提交" /></td>
			<td><input type="reset" value="重置" /></td>
		</tr>
	
	</form>
	</div>
	<div>
		<form align="center">
			<a href="signup.php">注册新用户!</a>
		</form>
	</div>
	';
	}
	?>
</body>
</html>